package com.joke;

import android.app.Activity;
import android.os.Bundle;
import android.os.HandlerThread;
import android.os.Message;

import com.joke.handler.JokeHandler;

public class main extends Activity {
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
     
        /**新起一个线程去获取笑话列表信息**/
        HandlerThread handlerThread = new HandlerThread("joke_thread");
		handlerThread.start();
		JokeHandler loadHandler = new JokeHandler(handlerThread.getLooper(),this);
		Message msg = loadHandler.obtainMessage();
		msg.sendToTarget();
    }
}